/*******************************************************************************
 * Course :					LOG210
 * Session :				winter 2012
 * Group :					02
 * Team :					3
 * Project :				Iteration 01
 * Students :				Nicolas Lefebvre			LEFN06078909
 * 							Jean-Philippe Chapdelaine	CHAJ13099001
 * 							Dalin Son					SOND05099000
 * 							Philippe Nichols			NICP29109007
 * Teacher :				François Caron
 * 							Jean-Philippe Martin
 * Created :				Feb 1, 2012
 * Date dern. modif. :		see revesion history
 * 
 * =============================================================
 *	Revision history
 * =============================================================
 *	Feb 1, 2012	Class created
*******************************************************************************/
package model;

import java.util.*;

public class Menu implements Collection<Plat> {
	private Collection<Plat> plats = new ArrayList<Plat>();

	public Menu()
	{
		this.clear();
	}
	
	@Override
	public boolean add(Plat arg0) {
		if(arg0 == null)
			return false;
		return this.plats.add(arg0);
	}

	@Override
	public boolean addAll(Collection<? extends Plat> arg0) {
		if(arg0.isEmpty())
			return false;
		return this.plats.addAll(arg0);
	}

	@Override
	public void clear() {
		if(!this.isEmpty())
		{
			this.plats.clear();
		}
	}

	@Override
	public boolean contains(Object arg0) {
		return this.plats.contains(arg0);
	}

	@Override
	public boolean containsAll(Collection<?> arg0) {
		return this.plats.containsAll(arg0);
	}

	@Override
	public boolean isEmpty() {
		return this.plats.isEmpty();
	}

	@Override
	public Iterator<Plat> iterator() {
		return this.plats.iterator();
	}

	@Override
	public boolean remove(Object arg0) {
		return this.plats.remove(arg0);
	}

	@Override
	public boolean removeAll(Collection<?> arg0) {
		return this.plats.removeAll(arg0);
	}

	@Override
	public boolean retainAll(Collection<?> arg0) {
		return this.plats.retainAll(arg0);
	}

	@Override
	public int size() {
		return this.plats.size();
	}

	@Override
	public Object[] toArray() {
		return this.plats.toArray();
	}

	@Override
	public <T> T[] toArray(T[] arg0) {
		return this.plats.toArray(arg0);
	}
}